package com.firmail.func;

import com.firmail.enumeration.MockParamsEnum;
import com.firmail.enumeration.impl.DataTypeEnum;
import com.firmail.enumeration.impl.MockTypeEnum;

@FunctionalInterface
public interface Converter<F, T> {

    T convert(F s);

    public static MockTypeEnum getMethod(int value){
        return MockTypeEnum.getByValue(value);
    }

    public static DataTypeEnum getDataType(int value){
        return DataTypeEnum.getByValue(value);
    }
}